package cn.lcl.web.controller;

import cn.lcl.service.admin.IIndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by licho on 2017/8/9 0009.
 */
@Controller
public class IndexController {
    @Autowired
    @Qualifier("indexService")
    private IIndexService indexService;

    /**
     * 返回主页
     * @return
     */
    @RequestMapping("/index")
    public String index(){
        System.out.println("进入index.action");
        indexService.testService();
        return "index";
    }
}
